
const mutations = {
  saveUserInfo(state, data) {
    state.userInfo = data
  },
  addUserAmount(state, data) {
    state.userInfo.Amount += data
  },
  updateTestValue(state, data) {
    state.testValue = data
  },
  setModule(state, data) {
    state.module = data
  }
  // ,
  // setHistoryList(state, data) {
  //   state[`${data.module}HistoryList`] = data.historyList
  // }
}

export default mutations
